<?php
namespace app\model;
use think\admin\Model;

use think\model\relation\HasMany;

/**
 * 产品
 * @class Product
 * @package app\model
 */
class Product extends Model
{
    protected $table = "hjz_product";

    public function cate(){
        return $this->belongsTo(Category::class,'parent_id');
    }

    public function tag(){
        return $this->belongsTo(Category::class,'tpl_id');
    }

    public function teacher(){
        return $this->belongsTo(Company::class,'company_id');
    }

   
}